#include <bits/stdc++.h>
using namespace std;
using i64 = long long;

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);
    int n, a;
    cin >> n >> a;
    vector<int> t(n + 1);
    for(int i = 1; i <= n; i++){
    	cin >> t[i];
    }

    int cur = t[1];
 	cur += a;
 	cout << cur << endl;
 	for(int i = 2; i <= n; i++){
 		if(t[i] <= cur){
 			cur += a;
 		}else{
 			cur = t[i] + a;
 		}
 		cout << cur << endl;
 	}

    return 0;
}
